﻿using System.Collections.Generic;
using System.ServiceModel;
using Remote.Model;

namespace Remote.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IRemoteArticleService”。
    [ServiceContract]
    public interface IRemoteArticleService
    {
        [OperationContract]
        IList<ArticleInfo> GetGroupList(int groupID);

        [OperationContract]
        IList<ArticleInfo> GetUpdateList(int count);

        [OperationContract]
        ArticleInfo GetArticle(int articleid);

        [OperationContract]
        IList<ChapterInfo> GetMaxChapterList(int articleid);

        [OperationContract]
        IList<ChapterInfo> GetBookReader(int articleid, string webflag);

        //根据小说ID，WEBFLAG获取小说列表
        [OperationContract]
        IList<ArticleInfo> GetArticleListBySort(int sortid, int begin, int count);

        [OperationContract]
        int GetArticleListCountBySort(int sortid);

        [OperationContract]
        IList<ChapterInfo> GetChapterListByWeb(string webflag, int articleid, int begin, int count);

        [OperationContract]
        int GetChapterListCountByWeb(string webflag, int articleid);

        [OperationContract]
        IList<ArticleInfo> SearchArticleList(string key, int begin, int count);

        [OperationContract]
        int SearchArticleListCount(string key);

        [OperationContract]
        IList<SysWebInfo> GetWebInfoList();

        [OperationContract]
        ChapterInfo GetChapter(int chapterid);
    }
}
